#!/usr/bin/env python
# coding: utf-8

# 请用生成器编写一个程序打印0到`n`之间的偶数，用逗号分隔。
# 
# 输入：`n=10`
# 
# 预期输出：`0,2,4,6,8,10`
# 

# In[1]:


n = 10
for i in range(0, n + 1, 2):
    if i < n - 1:
        print(i, end=",")
    else:
        print(i)

